home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Diamond Collection / The Diamond Collection (Software Vault)(Digital Impact).ISO / cdr44 / xlib06p1.zip / XRECT.H < prev    next >
C/C++ Source or Header  |  1995-03-05  |  2KB  |  95 lines

  1. /*-----------------------------------------------------------------------
  2. ;
  3. ; XRECT - header file
  4. ;
  5. ;
  6. ;
  7. ; ****** XLIB - Mode X graphics library                ****************
  8. ; ******                                               ****************
  9. ; ****** Written By Themie Gouthas                     ****************
  10. ;
  11. ; egg@dstos3.dsto.gov.au
  12. ; teg@bart.dsto.gov.au
  13. ;
  14. ;  Terminology & notes:
  15. ;         VRAM ==   Video RAM
  16. ;         SRAM ==   System RAM
  17. ;         X coordinates are in pixels unless explicitly stated
  18. ;
  19. ;-----------------------------------------------------------------------*/
  20.  
  21. #ifndef _XRECT_H_
  22. #define _XRECT_H_
  23.  
  24. #include "xdefs.h"
  25.  
  26. /* FUNCTIONS =========================================================== */
  27.  
  28.  
  29. void x_rect_pattern(      /* draw a pattern filled rectangle      */
  30.   xScreenCoord_t StartX,
  31.   xScreenCoord_t StartY,
  32.   xScreenCoord_t EndX,
  33.   xScreenCoord_t EndY,
  34.   xPageHandle_t PageBase,
  35.   BYTE * Pattern
  36. );
  37.  
  38. void x_rect_pattern_clipped(  /* draw a pattern filled clipped   */
  39.   xScreenCoord_t StartX,          /* rectangle                       */
  40.   xScreenCoord_t StartY,
  41.   xScreenCoord_t EndX,
  42.   xScreenCoord_t EndY,
  43.   xPageHandle_t PageBase,
  44.   BYTE * Pattern
  45. );
  46.  
  47. void  x_rect_fill(         /* draw a single colour filled rectangle */
  48.   xScreenCoord_t StartX,
  49.   xScreenCoord_t StartY,
  50.   xScreenCoord_t EndX,
  51.   xScreenCoord_t EndY,
  52.   xPageHandle_t PageBase,
  53.   int color
  54. );
  55.  
  56. void  x_rect_fill_clipped(   /* draw a single colour filled */
  57. xScreenCoord_t StartX,        /* and clipped rectangle       */
  58.   xScreenCoord_t StartY,
  59.   xScreenCoord_t EndX,
  60.   xScreenCoord_t EndY,
  61.   xPageHandle_t PageBase,
  62.   int color
  63. );
  64.  
  65. void  x_cp_vid_rect(       /* Copy rect region within VRAM          */
  66.   xScreenCoord_t SourceStartX,
  67.   xScreenCoord_t SourceStartY,
  68.   xScreenCoord_t SourceEndX,
  69.   xScreenCoord_t SourceEndY,
  70.   xScreenCoord_t DestStartX,
  71.   xScreenCoord_t DestStartY,
  72.   xPageHandle_t SourcePageBase,
  73.   xPageHandle_t DestPageBase,
  74.   int SourceBitmapWidth,
  75.   int DestBitmapWidth
  76. );
  77.  
  78. /* Copy a rectangular region of a VGA screen, with x coordinates
  79. rounded to the nearest byte -- source and destination may overlap. */
  80.  
  81. void  x_shift_rect (
  82.     xScreenCoord_t SrcLeft,
  83.     xScreenCoord_t SrcTop,
  84.   xScreenCoord_t SrcRight,
  85.     xScreenCoord_t SrcBottom,
  86.   xScreenCoord_t DestLeft,
  87.     xScreenCoord_t DestTop,
  88.     xPageHandle_t ScreenOffs
  89. );
  90.  
  91.  
  92. #endif
  93.  
  94.  
  95.